package linuxbox.status.logic;

import java.sql.Timestamp;

public class ShortMsgObject {
	protected int m_iID = -1;         
	protected String m_sFrom = null; // loginID of sender
	protected String m_sTo = null; // loginID of receiver
	protected Timestamp m_tsSendTime = null;
	protected String m_sSubject = null;
	protected String m_sMessage = null;

    protected String m_sFromName = null; // sender's full name
    protected String m_sToName = null; // receiver's full name
    
	public ShortMsgObject() {
	
	}

	public ShortMsgObject(int id, String from, String to, Timestamp sendTime, 
	String subject, String msg) {
		m_iID = id;
		m_sFrom = from;
		m_sTo = to;
		m_tsSendTime = sendTime;
		m_sSubject = subject;
		m_sMessage = msg;
	}
	
	public void copyFrom(ShortMsgObject entry) {
		m_iID = entry.getID();
		m_sFrom = entry.getFrom();
		m_sTo = entry.getTo();
		m_tsSendTime = entry.getSendTime();
		m_sSubject = entry.getSubject();
		m_sMessage = entry.getMessage();
	}

	public int getID() {
		return m_iID;
	}

	public void setID(int id) {
		m_iID = id;
	}

	public String getFrom() {
		return m_sFrom;
	}
	
	public void setFrom(String str) {
		m_sFrom = str;
	}
  
	public String getTo() {
		return m_sTo;
	}
	
	public void setTo(String str) {
		m_sTo = str;
	}
	
	public Timestamp getSendTime() {
		return m_tsSendTime;
	}
	
	public void setSendTime(Timestamp ts) {
		m_tsSendTime = ts;
	}
	
	public String getSubject() {
		return m_sSubject;
	}
	
	public void setSubject(String str) {
		m_sSubject = str;
	}
  
	public String getMessage() {
		return m_sMessage;
	}
	
	public void setMessage(String str) {
		m_sMessage = str;
	}
	
	public String getFromName() {
	    return m_sFromName;
	}
	
	public String getToName() {
	    return m_sToName;
	}
}
